-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Conversation
@mxnet-label-bot add [FP16, Operator, pr-awaiting-review] |
@anirudhacharya Seems like this change is breaking some tests, please fix those. |
the tests that are failing are tests for topk with |
@anirudhacharya What's the path forward for this PR ? |
@anirudhacharya: I see couple bugs in sort_op-inl.cuh, which show up when fp16 for topK is implemented. First of all, the lines 52, 63 are identical (see https://github.com/apache/incubator-mxnet/blob/master/src/operator/tensor/sort_op-inl.cuh):
are identical too.
(here and on couple of other places) we should use
|
@drivanov yes, |
@anirudhacharya:
As you could see, in my implementation |
yes, sorry for sounding ambiguous. The intent of my previous comment was to ack that it was a bug.
Thanks for this suggestion, I will try this and see if it works. On the other hand if you have a solution for this already and you would like to make a PR for it, let me know, I can close this and we can merge your code. |
4d81d59
to
8b0884f
Compare
@anirudhacharya: Yes, I do have a solution, but it is not quite completed yet.
|
then we can probably merge this, since i think this pr is pretty much merge ready. @sxjscience @haojin2 could you review/merge this. |
Description
Add fp16 support for topk operator. Required for certain machine translation tasks( and other NLP related tasks).
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
For review - @anirudh2290 @apeforest @sxjscience
Same as this PR - #14912